
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<script id="FORM_DEPT_TPL" type="text/html">

    <!--<div class="{{= d.rowDivClass }}" >-->
    <!--<label class="layui-form-label">{{= d.lable }}</label>-->
    <!--<div class="layui-input-inline">-->
    <!--<input style="width: 100px;" class="layui-input" type="text">-->
    <!--<a style="color:green;" href="javascript:;" id="dept">choose<i class="layui-icon">&#xe613;</i> </a>-->
    <!--</div>-->
    <!--</div>-->


    <div class="layui-form-item form-dept">
        <label class="layui-form-label">{{= d.lable }}</label>
        <div class="layui-input-inline">
            <input type="hidden" name="{{= d.name }}">
            <input type="text" name="{{= d.name }}Text" readonly  {{#  if(d.verify){ }} lay-verify="{{= d.verify }}" {{#  } }} placeholder="请选择部门" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-form-mid layui-word-aux">
            <a style="color:green;" href="javascript:;" id="dept"><i class="layui-icon">&#xe613;</i> </a>
        </div>
    </div>


</script>

<script id="FORM_HIDDEN_TPL" type="text/html">
    <input type="hidden" name="{{= d.name }}" value="{{= d.value || '' }}">
</script>

<script id="FORM_UPLOADER_TPL" type="text/html">
    <div class="{{= d.rowDivClass }}" >
        <label class="layui-form-label">{{= d.lable }}</label>
        <div class="{{= d.itemDivClass }}">
            <div   {{#  if(d.verify){ }} lay-verify="{{= d.verify }}" {{#  } }} >
                <div class="webuploader" param="{{=   JSON.stringify(d) }}">webuploader</div>
            </div>
        </div>
    </div>
</script>

<script id="FORM_TEXT_TPL" type="text/html">
    <div class="{{= d.rowDivClass }}" >
        <label class="layui-form-label">{{= d.lable }}</label>
        <div class="{{= d.itemDivClass }}">
            <input name="{{= d.name }}" value="" {{#  if(d.placeholder){ }} placeholder="{{= d.placeholder }}" {{#  } }}   {{#  if(d.verify){ }} lay-verify="{{= d.verify }}" {{#  } }}  class="layui-input" type="text">
        </div>
    </div>
</script>


<script id="FORM_DATE_TPL" type="text/html">
    <div class="{{= d.rowDivClass }}" >
        <label class="layui-form-label">{{= d.lable }}</label>
        <div class="{{= d.itemDivClass }}">
            <input name="{{= d.name }}"  {{#  if(d.verify){ }} lay-verify="{{= d.verify }}" {{#  } }}  placeholder="{{= d.placeholder || d.format }}" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this,istime: {{= d.istime }}, format: '{{= d.format }}'})" type="text">
        </div>
    </div>
</script>

<script id="FORM_CUSTOM_TPL" type="text/html">
    <div class="{{= d.rowDivClass }}" >
        <label class="layui-form-label">{{= d.lable }}</label>
        <div class="{{= d.itemDivClass }}">
            {{ d.html }}
        </div>
    </div>
</script>


<script id="FORM_CHECKBOX_TPL" type="text/html">
    <div class="{{= d.rowDivClass }}" >
        <label class="layui-form-label">{{= d.lable }}</label>
        <div class="{{= d.itemDivClass }}" {{#  if(d.verify){ }} lay-verify="{{= d.verify }}" {{#  } }}>
            {{# layui.each(d.data, function(index, item){ }}
            <input type="checkbox" name="{{= item.name }}" title="{{= item.lable }}" value="{{= item.value }}" {{#  if(item.checked){ }} checked{{#  } }}>
            {{# }); }}

        </div>
    </div>
</script>

<script id="FORM_SWITCH_TPL" type="text/html">
    <div class="{{= d.rowDivClass }}">
        <label class="layui-form-label">{{= d.lable }}</label>
        <div class="{{= d.itemDivClass }}">
            <input type="checkbox" name="{{= d.name }}" value="{{= d.value }}" lay-skin="switch" {{#  if(d.checked){ }} checked{{#  } }}>
        </div>
    </div>
</script>

<script id="FORM_RADIO_TPL" type="text/html">
    <div class="{{= d.rowDivClass }}">
        <label class="layui-form-label">{{= d.lable }}</label>
        <div class="{{= d.itemDivClass }}">
            {{# layui.each(d.data, function(index, item){ }}
            <input type="radio" name="{{= item.name }}" title="{{= item.lable }}" value="{{= item.value }}" {{#  if(item.checked){ }} checked{{#  } }}>
            {{# }); }}
        </div>
    </div>
</script>


<script id="FORM_TEXTAREA_TPL" type="text/html">
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">{{= d.lable }}</label>
        <div class="layui-input-block">
            <textarea name="desc"   {{#  if(d.verify){ }} lay-verify="{{= d.verify }}" {{#  } }} {{#  if(d.placeholder){ }} placeholder="{{= d.placeholder }}" {{#  } }} class="layui-textarea"></textarea>
        </div>
    </div>
</script>


<script id="FORM_SELECT_TPL" type="text/html">
    <div class="{{= d.rowDivClass }}">
        <label class="layui-form-label">{{= d.lable }}</label>
        <div class="{{= d.itemDivClass }}">
            <select name="{{= d.name }}"  {{#  if(d.verify){ }} lay-verify="{{= d.verify }}" {{#  } }}>
                {{# layui.each(d.data, function(index, item){ }}
                <option value="{{= item.key }}">{{= item.value }}</option>
                {{# }); }}
            </select>
        </div>
    </div>
</script>

<script id="FORM_BUTTONS_TPL" type="text/html">
    <div class="{{= d.rowDivClass }}">
        <div {{#  if(d.layout=='vertical'){ }} class="layui-input-block" {{#  } }}>
            {{# layui.each(d.list, function(index, item){ }}
            {{#  if(item.type== 'submit'){ }}
            <button class="{{= d.btnClass }}" lay-filter="{{= d.formid }}" lay-submit data-method="{{= item.method }}">
                {{#  if(item.icon){ }} {{ d.ADP_ICON[item.icon] }} {{#  } }}
                {{= item.lable }}
            </button>
            {{#  }else{ }}

            <button class="{{= d.btnClass }}" type="{{= item.type }}"  data-method="{{= item.method }}">
                {{#  if(item.icon){ }} {{ d.ADP_ICON[item.icon] }} {{#  } }}
                {{= item.lable }}
            </button>

            {{#  } }}

            {{# }); }}
        </div>
    </div>
</script>

